package com.t4.courseware.controller;


import com.t4.courseware.common.Result;
import com.t4.courseware.service.CarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/carousel")
public class CarouselController {

    @Autowired
    private CarouselService carouselService;

    @GetMapping("list")
    public Result listCarouse(){
        return carouselService.listCarouse();
    }
}
